home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / source / f2c3.2src.lha / f2c-for-SASC651 / libF77 / h_sign.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-29  |  199 b   |  13 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. shortint h_sign(a,b) shortint *a, *b;
  5. #else
  6. shortint h_sign(shortint *a, shortint *b)
  7. #endif
  8. {
  9. shortint x;
  10. x = (*a >= 0 ? *a : - *a);
  11. return( *b >= 0 ? x : -x);
  12. }
  13.